/*
 * @Description: 资讯模块接口
 * @Author: baron
 * @Date: 2025-04-15 17:20:18
 * @LastEditTime: 2025-04-18 11:08:36
 * @LastEditors: baron
 */

import {
    get,
    post
} from '@/utils/requestUtils';

// 获取资讯列表
export const getNewsList = params => {
    return get('/system/news/list', params);
};

// 获取资讯详情
export const getNewsDetail = params => {
    return get(`/system/news/${params}`);
};
// 获取相关推荐
export const getRelatedNews = params => {
    return get('/api/news/related', params);
};

// 获取置顶资讯
export const getTopNews = params => {
    return get('/api/news/top', params);
};

// 获取分类列表
export const getCategories = params => {
    return get('/api/news/categories', params);
};